import SynchronizationLoginNork from '@/utils/SynchronizationLoginWork'
import Synchronization from "@/utils/Synchronization"
export const fecthLotNo = (parms:any) => {
    return Synchronization.post<any,any>(`/cost/LotNoDetail/${2}`,parms)
}

// 指令查询
export const lotNoQuery = (parms:any) => {
    return Synchronization.post<any,any>(`/cost/getLotNoDetail/${2}`,parms)
}

// 冲裁单价明细
export const PunchingUnitPriceFile = (parms:any) => {
    return Synchronization.post<any,any>(`/cost/InstructionProcessUnitPriceDetails`,parms)
}

// 重新生生指令单价
export const RegeneratesTheInstructionUnitPrice = (choose:any,parms:any)=> {
    return SynchronizationLoginNork.post<any,any>(`/cost/GenerateInstructionProcessUnitPrice/${choose}`,parms)
}

// 生成指令单价
export const TheInstructionUnitPrice = (parms:any,choose:number)=> {
    return SynchronizationLoginNork.post<any,any>(`/cost/GenerateInstructionProcessUnitPrice/${choose}`,parms)
}

// 导出
export const ExportPrice = (lotNo:any)=> {
    return SynchronizationLoginNork.get<any,any>(`/cost/ExportManualInstructionUnitPrice?lotNo=${lotNo}`)
}

// 根据序号删除
export const DeleteBySerialNumber = (parms:any,seqNo:string) => {
    return SynchronizationLoginNork.post<any,any>(`/cost/delBySeqNo2?seqNo=${seqNo}`,parms)
}